package com.dodayum.utils;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

public class ResultUtils {

    Map<String,Object> result = new HashMap<>();

    public ResultUtils(Boolean success,String information,Integer code,String contentType){
        result.put("success",success);
        result.put("information",information);
        result.put("code",code);
        result.put("contentType",contentType);
    }
    public String buildReturn(){
        return JSON.toJSONString(result);
    }

}
